package com.ruiysoft.service.order;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruiysoft.entity.order.OrderRelationCommission;
import com.ruiysoft.entity.sys.SysShopPersonnel;
import com.ruiysoft.mapper.order.OrderRelationCommissionMapper;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author huazengguang
 * @since 2019-10-13
 */
public interface IOrderRelationCommissionService extends IService<OrderRelationCommission> {

    Page<SysShopPersonnel> getRelationCommissionList(Integer pageStart, Integer pageSize, Long shopId);

    Page<OrderRelationCommission> getRelationCommissionByUserId(Integer pageStart, Integer pageSize, Long shopId, Long userId);

    Page<OrderRelationCommission> getRelationCommissionByBuyerId(Integer pageStart, Integer pageSize, Long shopId, Long userId, Long id);

    Page getRelationCommissionDisByUserId(Integer pageStart, Integer pageSize, Long shopId, Long userId);

    Page getCurrentDistributionerList(Integer pageStart, Integer pageSize, Long shopId, Long userId);

//    boolean settleCommissionByIds(Long shopId, List<String> ids);
}
